/** 信息存储模块 */

function infoStorage_push(type, info) {
    console.log('[logjs] trigger >>> Message Collection');
    if (!Array.isArray(storage[type])) {
        storage[type] = Object.assign(storage[type], info);
    } else {
        storage[type].push(info);
    }
}

let storage = {

    error_info: [], //错误信息
    diy_info: [], //自定义信息
    click_info: [], //点击信息
    io_info: [], //I/O 信息

    terminal_info: {}, //终端信息
    performance_info: {}, //性能信息

    config_info: {}, //配置模式信息

    save: infoStorage_push, //向信息存储模块存储消息
};

export default storage;